/*
 * Copyright (C) 2012 VinaVAC. All rights reserved.
 */
package org.vinavac.bean;

import javax.ejb.LocalBean;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.vinavac.entity.Subject;


/**
 *
 * @author Quang <quangtin3@gmail.com>
 */
@Stateless
@LocalBean
public class SubjectSessionBean extends AbstractSessionBean<Subject> {

    @PersistenceContext(unitName = VINAVAC_PERSISTENCE_UNIT_NAME)
    private EntityManager em;

    @Override
    protected EntityManager getEntityManager() {
        return em;
    }

    public SubjectSessionBean() {
        super(Subject.class);
    }
}
